<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style type="text/css">
        .red {
            color: red;
        }
    </style>
</head>
<body>
    <h1>Hello DEMO</h1>
    <h3>111${hello}</h3>
    <ul>
        <c:forEach var="data" items="${dataList}">
            <li>
                <c:if test="${data.type eq 'png'||data.type eq 'jpg'||data.type eq 'jpeg'||data.type eq 'gif'}">
                    图片
                </c:if>
                <c:if test="${data.type eq 'mp4'}">
                    视频
                </c:if>
                <c:if test="${data.type eq 'mp3'}">
                    音频
                </c:if>
                => ${data.filePath}
            </li>
        </c:forEach>
    </ul>
    <jsp:include page="common.jsp"/>
</body>
</html>